<template>
  <div class="app-container">
    <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
      <el-form-item label="共几页" prop="totalPage">
        <el-input
          v-model="queryParams.totalPage"
          placeholder="请输入共几页"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="第几页" prop="page">
        <el-input
          v-model="queryParams.page"
          placeholder="请输入第几页"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="记录编号" prop="jilbh">
        <el-input
          v-model="queryParams.jilbh"
          placeholder="请输入记录编号"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="检测单位名称" prop="jiancdwmc">
        <el-input
          v-model="queryParams.jiancdwmc"
          placeholder="请输入检测单位名称"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="工程名称" prop="gongcmc">
        <el-input
          v-model="queryParams.gongcmc"
          placeholder="请输入工程名称"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="工程部位/用途" prop="gongcbwyt">
        <el-input
          v-model="queryParams.gongcbwyt"
          placeholder="请输入工程部位/用途"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="样品名称" prop="yangpmc">
        <el-input
          v-model="queryParams.yangpmc"
          placeholder="请输入样品名称"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="样品编号" prop="yangpbh">
        <el-input
          v-model="queryParams.yangpbh"
          placeholder="请输入样品编号"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="样品数量" prop="yangpsl">
        <el-input
          v-model="queryParams.yangpsl"
          placeholder="请输入样品数量"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="样品状态" prop="yangpzt">
        <el-input
          v-model="queryParams.yangpzt"
          placeholder="请输入样品状态"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="样品时间" prop="yangpsj">
        <el-input
          v-model="queryParams.yangpsj"
          placeholder="请输入样品时间"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="试验检测日期" prop="shiyjcrq">
        <el-input
          v-model="queryParams.shiyjcrq"
          placeholder="请输入试验检测日期"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="试验条件温度" prop="shiytjwd">
        <el-input
          v-model="queryParams.shiytjwd"
          placeholder="请输入试验条件温度"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="试验条件湿度" prop="shiytjsd">
        <el-input
          v-model="queryParams.shiytjsd"
          placeholder="请输入试验条件湿度"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="检测依据" prop="jiancyj">
        <el-input
          v-model="queryParams.jiancyj"
          placeholder="请输入检测依据"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="判定依据" prop="pandyj">
        <el-input
          v-model="queryParams.pandyj"
          placeholder="请输入判定依据"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="检测依据ids" prop="jiancyjIds">
        <el-input
          v-model="queryParams.jiancyjIds"
          placeholder="请输入检测依据ids"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="判定依据ids" prop="pandyjIds">
        <el-input
          v-model="queryParams.pandyjIds"
          placeholder="请输入判定依据ids"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="主要仪器设备名称及编号" prop="zhuyyqsbmcjbh">
        <el-input
          v-model="queryParams.zhuyyqsbmcjbh"
          placeholder="请输入主要仪器设备名称及编号"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="设备id逗号分隔" prop="shebIds">
        <el-input
          v-model="queryParams.shebIds"
          placeholder="请输入设备id逗号分隔"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="附加声明" prop="fujsm">
        <el-input
          v-model="queryParams.fujsm"
          placeholder="请输入附加声明"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="材料名称规格1" prop="cailmcgg1">
        <el-input
          v-model="queryParams.cailmcgg1"
          placeholder="请输入材料名称规格1"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="材料名称规格2" prop="cailmcgg2">
        <el-input
          v-model="queryParams.cailmcgg2"
          placeholder="请输入材料名称规格2"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="材料名称规格3" prop="cailmcgg3">
        <el-input
          v-model="queryParams.cailmcgg3"
          placeholder="请输入材料名称规格3"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="材料名称规格4" prop="cailmcgg4">
        <el-input
          v-model="queryParams.cailmcgg4"
          placeholder="请输入材料名称规格4"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="材料名称规格5" prop="cailmcgg5">
        <el-input
          v-model="queryParams.cailmcgg5"
          placeholder="请输入材料名称规格5"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="材料名称规格6" prop="cailmcgg6">
        <el-input
          v-model="queryParams.cailmcgg6"
          placeholder="请输入材料名称规格6"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="材料名称规格7" prop="cailmcgg7">
        <el-input
          v-model="queryParams.cailmcgg7"
          placeholder="请输入材料名称规格7"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="产地1" prop="chand1">
        <el-input
          v-model="queryParams.chand1"
          placeholder="请输入产地1"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="产地2" prop="chand2">
        <el-input
          v-model="queryParams.chand2"
          placeholder="请输入产地2"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="产地3" prop="chand3">
        <el-input
          v-model="queryParams.chand3"
          placeholder="请输入产地3"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="产地4" prop="chand4">
        <el-input
          v-model="queryParams.chand4"
          placeholder="请输入产地4"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="产地5" prop="chand5">
        <el-input
          v-model="queryParams.chand5"
          placeholder="请输入产地5"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="产地6" prop="chand6">
        <el-input
          v-model="queryParams.chand6"
          placeholder="请输入产地6"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="产地7" prop="chand7">
        <el-input
          v-model="queryParams.chand7"
          placeholder="请输入产地7"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="比例1" prop="bil1">
        <el-input
          v-model="queryParams.bil1"
          placeholder="请输入比例1"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="比例2" prop="bil2">
        <el-input
          v-model="queryParams.bil2"
          placeholder="请输入比例2"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="比例3" prop="bil3">
        <el-input
          v-model="queryParams.bil3"
          placeholder="请输入比例3"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="比例4" prop="bil4">
        <el-input
          v-model="queryParams.bil4"
          placeholder="请输入比例4"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="比例5" prop="bil5">
        <el-input
          v-model="queryParams.bil5"
          placeholder="请输入比例5"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="比例6" prop="bil6">
        <el-input
          v-model="queryParams.bil6"
          placeholder="请输入比例6"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="比例7" prop="bil7">
        <el-input
          v-model="queryParams.bil7"
          placeholder="请输入比例7"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="试验方法类别" prop="shiyfflb">
        <el-input
          v-model="queryParams.shiyfflb"
          placeholder="请输入试验方法类别"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="筒容积" prop="tongrj">
        <el-input
          v-model="queryParams.tongrj"
          placeholder="请输入筒容积"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="5-38mm颗粒含量" prop="klhl538mm">
        <el-input
          v-model="queryParams.klhl538mm"
          placeholder="请输入5-38mm颗粒含量"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="落距cm" prop="luoj">
        <el-input
          v-model="queryParams.luoj"
          placeholder="请输入落距cm"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="每层击数" prop="meicjs">
        <el-input
          v-model="queryParams.meicjs"
          placeholder="请输入每层击数"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="击锤质量" prop="jiczl">
        <el-input
          v-model="queryParams.jiczl"
          placeholder="请输入击锤质量"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="干密度平均值" prop="ganmdpjz">
        <el-input
          v-model="queryParams.ganmdpjz"
          placeholder="请输入干密度平均值"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item>
        <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
        <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
      </el-form-item>
    </el-form>

    <el-row :gutter="10" class="mb8">
      <el-col :span="1.5">
        <el-button
          type="primary"
          plain
          icon="el-icon-plus"
          size="mini"
          @click="handleAdd"
          v-hasPermi="['report_wjjhl:wjjhlWdclzdgmdBsInfo:add']"
        >新增</el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button
          type="success"
          plain
          icon="el-icon-edit"
          size="mini"
          :disabled="single"
          @click="handleUpdate"
          v-hasPermi="['report_wjjhl:wjjhlWdclzdgmdBsInfo:edit']"
        >修改</el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button
          type="danger"
          plain
          icon="el-icon-delete"
          size="mini"
          :disabled="multiple"
          @click="handleDelete"
          v-hasPermi="['report_wjjhl:wjjhlWdclzdgmdBsInfo:remove']"
        >删除</el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button
          type="warning"
          plain
          icon="el-icon-download"
          size="mini"
          @click="handleExport"
          v-hasPermi="['report_wjjhl:wjjhlWdclzdgmdBsInfo:export']"
        >导出</el-button>
      </el-col>
      <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
    </el-row>

    <el-table v-loading="loading" :data="wjjhlWdclzdgmdBsInfoList" @selection-change="handleSelectionChange">
      <el-table-column type="selection" width="55" align="center" />
      <el-table-column label="一份excel表格的唯一id(其他的excel主表，都应有此字段）" align="center" prop="excelId" v-if="true"/>
      <el-table-column label="共几页" align="center" prop="totalPage" />
      <el-table-column label="第几页" align="center" prop="page" />
      <el-table-column label="记录编号" align="center" prop="jilbh" />
      <el-table-column label="检测单位名称" align="center" prop="jiancdwmc" />
      <el-table-column label="工程名称" align="center" prop="gongcmc" />
      <el-table-column label="工程部位/用途" align="center" prop="gongcbwyt" />
      <el-table-column label="样品名称" align="center" prop="yangpmc" />
      <el-table-column label="样品编号" align="center" prop="yangpbh" />
      <el-table-column label="样品数量" align="center" prop="yangpsl" />
      <el-table-column label="样品状态" align="center" prop="yangpzt" />
      <el-table-column label="样品时间" align="center" prop="yangpsj" />
      <el-table-column label="试验检测日期" align="center" prop="shiyjcrq" />
      <el-table-column label="试验条件温度" align="center" prop="shiytjwd" />
      <el-table-column label="试验条件湿度" align="center" prop="shiytjsd" />
      <el-table-column label="检测依据" align="center" prop="jiancyj" />
      <el-table-column label="判定依据" align="center" prop="pandyj" />
      <el-table-column label="检测依据ids" align="center" prop="jiancyjIds" />
      <el-table-column label="判定依据ids" align="center" prop="pandyjIds" />
      <el-table-column label="主要仪器设备名称及编号" align="center" prop="zhuyyqsbmcjbh" />
      <el-table-column label="设备id逗号分隔" align="center" prop="shebIds" />
      <el-table-column label="附加声明" align="center" prop="fujsm" />
      <el-table-column label="材料名称规格1" align="center" prop="cailmcgg1" />
      <el-table-column label="材料名称规格2" align="center" prop="cailmcgg2" />
      <el-table-column label="材料名称规格3" align="center" prop="cailmcgg3" />
      <el-table-column label="材料名称规格4" align="center" prop="cailmcgg4" />
      <el-table-column label="材料名称规格5" align="center" prop="cailmcgg5" />
      <el-table-column label="材料名称规格6" align="center" prop="cailmcgg6" />
      <el-table-column label="材料名称规格7" align="center" prop="cailmcgg7" />
      <el-table-column label="产地1" align="center" prop="chand1" />
      <el-table-column label="产地2" align="center" prop="chand2" />
      <el-table-column label="产地3" align="center" prop="chand3" />
      <el-table-column label="产地4" align="center" prop="chand4" />
      <el-table-column label="产地5" align="center" prop="chand5" />
      <el-table-column label="产地6" align="center" prop="chand6" />
      <el-table-column label="产地7" align="center" prop="chand7" />
      <el-table-column label="比例1" align="center" prop="bil1" />
      <el-table-column label="比例2" align="center" prop="bil2" />
      <el-table-column label="比例3" align="center" prop="bil3" />
      <el-table-column label="比例4" align="center" prop="bil4" />
      <el-table-column label="比例5" align="center" prop="bil5" />
      <el-table-column label="比例6" align="center" prop="bil6" />
      <el-table-column label="比例7" align="center" prop="bil7" />
      <el-table-column label="试验方法类别" align="center" prop="shiyfflb" />
      <el-table-column label="筒容积" align="center" prop="tongrj" />
      <el-table-column label="5-38mm颗粒含量" align="center" prop="klhl538mm" />
      <el-table-column label="落距cm" align="center" prop="luoj" />
      <el-table-column label="每层击数" align="center" prop="meicjs" />
      <el-table-column label="击锤质量" align="center" prop="jiczl" />
      <el-table-column label="干密度平均值" align="center" prop="ganmdpjz" />
      <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
        <template slot-scope="scope">
          <el-button
            size="mini"
            type="text"
            icon="el-icon-edit"
            @click="handleUpdate(scope.row)"
            v-hasPermi="['report_wjjhl:wjjhlWdclzdgmdBsInfo:edit']"
          >修改</el-button>
          <el-button
            size="mini"
            type="text"
            icon="el-icon-delete"
            @click="handleDelete(scope.row)"
            v-hasPermi="['report_wjjhl:wjjhlWdclzdgmdBsInfo:remove']"
          >删除</el-button>
        </template>
      </el-table-column>
    </el-table>

    <pagination
      v-show="total>0"
      :total="total"
      :page.sync="queryParams.pageNum"
      :limit.sync="queryParams.pageSize"
      @pagination="getList"
    />

    <!-- 添加或修改最大干密度\最佳含水率试验检测记录对话框 -->
    <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
      <el-form ref="form" :model="form" :rules="rules" label-width="80px">
        <el-form-item label="共几页" prop="totalPage">
          <el-input v-model="form.totalPage" placeholder="请输入共几页" />
        </el-form-item>
        <el-form-item label="第几页" prop="page">
          <el-input v-model="form.page" placeholder="请输入第几页" />
        </el-form-item>
        <el-form-item label="记录编号" prop="jilbh">
          <el-input v-model="form.jilbh" placeholder="请输入记录编号" />
        </el-form-item>
        <el-form-item label="检测单位名称" prop="jiancdwmc">
          <el-input v-model="form.jiancdwmc" placeholder="请输入检测单位名称" />
        </el-form-item>
        <el-form-item label="工程名称" prop="gongcmc">
          <el-input v-model="form.gongcmc" placeholder="请输入工程名称" />
        </el-form-item>
        <el-form-item label="工程部位/用途" prop="gongcbwyt">
          <el-input v-model="form.gongcbwyt" placeholder="请输入工程部位/用途" />
        </el-form-item>
        <el-form-item label="样品名称" prop="yangpmc">
          <el-input v-model="form.yangpmc" placeholder="请输入样品名称" />
        </el-form-item>
        <el-form-item label="样品编号" prop="yangpbh">
          <el-input v-model="form.yangpbh" placeholder="请输入样品编号" />
        </el-form-item>
        <el-form-item label="样品数量" prop="yangpsl">
          <el-input v-model="form.yangpsl" placeholder="请输入样品数量" />
        </el-form-item>
        <el-form-item label="样品状态" prop="yangpzt">
          <el-input v-model="form.yangpzt" placeholder="请输入样品状态" />
        </el-form-item>
        <el-form-item label="样品时间" prop="yangpsj">
          <el-input v-model="form.yangpsj" placeholder="请输入样品时间" />
        </el-form-item>
        <el-form-item label="试验检测日期" prop="shiyjcrq">
          <el-input v-model="form.shiyjcrq" placeholder="请输入试验检测日期" />
        </el-form-item>
        <el-form-item label="试验条件温度" prop="shiytjwd">
          <el-input v-model="form.shiytjwd" placeholder="请输入试验条件温度" />
        </el-form-item>
        <el-form-item label="试验条件湿度" prop="shiytjsd">
          <el-input v-model="form.shiytjsd" placeholder="请输入试验条件湿度" />
        </el-form-item>
        <el-form-item label="检测依据" prop="jiancyj">
          <el-input v-model="form.jiancyj" placeholder="请输入检测依据" />
        </el-form-item>
        <el-form-item label="判定依据" prop="pandyj">
          <el-input v-model="form.pandyj" placeholder="请输入判定依据" />
        </el-form-item>
        <el-form-item label="检测依据ids" prop="jiancyjIds">
          <el-input v-model="form.jiancyjIds" type="textarea" placeholder="请输入内容" />
        </el-form-item>
        <el-form-item label="判定依据ids" prop="pandyjIds">
          <el-input v-model="form.pandyjIds" type="textarea" placeholder="请输入内容" />
        </el-form-item>
        <el-form-item label="主要仪器设备名称及编号" prop="zhuyyqsbmcjbh">
          <el-input v-model="form.zhuyyqsbmcjbh" placeholder="请输入主要仪器设备名称及编号" />
        </el-form-item>
        <el-form-item label="设备id逗号分隔" prop="shebIds">
          <el-input v-model="form.shebIds" type="textarea" placeholder="请输入内容" />
        </el-form-item>
        <el-form-item label="附加声明" prop="fujsm">
          <el-input v-model="form.fujsm" placeholder="请输入附加声明" />
        </el-form-item>
        <el-form-item label="材料名称规格1" prop="cailmcgg1">
          <el-input v-model="form.cailmcgg1" placeholder="请输入材料名称规格1" />
        </el-form-item>
        <el-form-item label="材料名称规格2" prop="cailmcgg2">
          <el-input v-model="form.cailmcgg2" placeholder="请输入材料名称规格2" />
        </el-form-item>
        <el-form-item label="材料名称规格3" prop="cailmcgg3">
          <el-input v-model="form.cailmcgg3" placeholder="请输入材料名称规格3" />
        </el-form-item>
        <el-form-item label="材料名称规格4" prop="cailmcgg4">
          <el-input v-model="form.cailmcgg4" placeholder="请输入材料名称规格4" />
        </el-form-item>
        <el-form-item label="材料名称规格5" prop="cailmcgg5">
          <el-input v-model="form.cailmcgg5" placeholder="请输入材料名称规格5" />
        </el-form-item>
        <el-form-item label="材料名称规格6" prop="cailmcgg6">
          <el-input v-model="form.cailmcgg6" placeholder="请输入材料名称规格6" />
        </el-form-item>
        <el-form-item label="材料名称规格7" prop="cailmcgg7">
          <el-input v-model="form.cailmcgg7" placeholder="请输入材料名称规格7" />
        </el-form-item>
        <el-form-item label="产地1" prop="chand1">
          <el-input v-model="form.chand1" placeholder="请输入产地1" />
        </el-form-item>
        <el-form-item label="产地2" prop="chand2">
          <el-input v-model="form.chand2" placeholder="请输入产地2" />
        </el-form-item>
        <el-form-item label="产地3" prop="chand3">
          <el-input v-model="form.chand3" placeholder="请输入产地3" />
        </el-form-item>
        <el-form-item label="产地4" prop="chand4">
          <el-input v-model="form.chand4" placeholder="请输入产地4" />
        </el-form-item>
        <el-form-item label="产地5" prop="chand5">
          <el-input v-model="form.chand5" placeholder="请输入产地5" />
        </el-form-item>
        <el-form-item label="产地6" prop="chand6">
          <el-input v-model="form.chand6" placeholder="请输入产地6" />
        </el-form-item>
        <el-form-item label="产地7" prop="chand7">
          <el-input v-model="form.chand7" placeholder="请输入产地7" />
        </el-form-item>
        <el-form-item label="比例1" prop="bil1">
          <el-input v-model="form.bil1" placeholder="请输入比例1" />
        </el-form-item>
        <el-form-item label="比例2" prop="bil2">
          <el-input v-model="form.bil2" placeholder="请输入比例2" />
        </el-form-item>
        <el-form-item label="比例3" prop="bil3">
          <el-input v-model="form.bil3" placeholder="请输入比例3" />
        </el-form-item>
        <el-form-item label="比例4" prop="bil4">
          <el-input v-model="form.bil4" placeholder="请输入比例4" />
        </el-form-item>
        <el-form-item label="比例5" prop="bil5">
          <el-input v-model="form.bil5" placeholder="请输入比例5" />
        </el-form-item>
        <el-form-item label="比例6" prop="bil6">
          <el-input v-model="form.bil6" placeholder="请输入比例6" />
        </el-form-item>
        <el-form-item label="比例7" prop="bil7">
          <el-input v-model="form.bil7" placeholder="请输入比例7" />
        </el-form-item>
        <el-form-item label="试验方法类别" prop="shiyfflb">
          <el-input v-model="form.shiyfflb" placeholder="请输入试验方法类别" />
        </el-form-item>
        <el-form-item label="筒容积" prop="tongrj">
          <el-input v-model="form.tongrj" placeholder="请输入筒容积" />
        </el-form-item>
        <el-form-item label="5-38mm颗粒含量" prop="klhl538mm">
          <el-input v-model="form.klhl538mm" placeholder="请输入5-38mm颗粒含量" />
        </el-form-item>
        <el-form-item label="落距cm" prop="luoj">
          <el-input v-model="form.luoj" placeholder="请输入落距cm" />
        </el-form-item>
        <el-form-item label="每层击数" prop="meicjs">
          <el-input v-model="form.meicjs" placeholder="请输入每层击数" />
        </el-form-item>
        <el-form-item label="击锤质量" prop="jiczl">
          <el-input v-model="form.jiczl" placeholder="请输入击锤质量" />
        </el-form-item>
        <el-form-item label="干密度平均值" prop="ganmdpjz">
          <el-input v-model="form.ganmdpjz" placeholder="请输入干密度平均值" />
        </el-form-item>
      </el-form>
      <div slot="footer" class="dialog-footer">
        <el-button :loading="buttonLoading" type="primary" @click="submitForm">确 定</el-button>
        <el-button @click="cancel">取 消</el-button>
      </div>
    </el-dialog>
  </div>
</template>

<script>
import { listWjjhlWdclzdgmdBsInfo, getWjjhlWdclzdgmdBsInfo, delWjjhlWdclzdgmdBsInfo, addWjjhlWdclzdgmdBsInfo, updateWjjhlWdclzdgmdBsInfo } from "@/api/report_wjjhl/wjjhlWdclzdgmdBsInfo";

export default {
  name: "WjjhlWdclzdgmdBsInfo",
  data() {
    return {
      // 按钮loading
      buttonLoading: false,
      // 遮罩层
      loading: true,
      // 选中数组
      ids: [],
      // 非单个禁用
      single: true,
      // 非多个禁用
      multiple: true,
      // 显示搜索条件
      showSearch: true,
      // 总条数
      total: 0,
      // 最大干密度\最佳含水率试验检测记录表格数据
      wjjhlWdclzdgmdBsInfoList: [],
      // 弹出层标题
      title: "",
      // 是否显示弹出层
      open: false,
      // 查询参数
      queryParams: {
        pageNum: 1,
        pageSize: 10,
        totalPage: undefined,
        page: undefined,
        jilbh: undefined,
        jiancdwmc: undefined,
        gongcmc: undefined,
        gongcbwyt: undefined,
        yangpmc: undefined,
        yangpbh: undefined,
        yangpsl: undefined,
        yangpzt: undefined,
        yangpsj: undefined,
        shiyjcrq: undefined,
        shiytjwd: undefined,
        shiytjsd: undefined,
        jiancyj: undefined,
        pandyj: undefined,
        jiancyjIds: undefined,
        pandyjIds: undefined,
        zhuyyqsbmcjbh: undefined,
        shebIds: undefined,
        fujsm: undefined,
        cailmcgg1: undefined,
        cailmcgg2: undefined,
        cailmcgg3: undefined,
        cailmcgg4: undefined,
        cailmcgg5: undefined,
        cailmcgg6: undefined,
        cailmcgg7: undefined,
        chand1: undefined,
        chand2: undefined,
        chand3: undefined,
        chand4: undefined,
        chand5: undefined,
        chand6: undefined,
        chand7: undefined,
        bil1: undefined,
        bil2: undefined,
        bil3: undefined,
        bil4: undefined,
        bil5: undefined,
        bil6: undefined,
        bil7: undefined,
        shiyfflb: undefined,
        tongrj: undefined,
        klhl538mm: undefined,
        luoj: undefined,
        meicjs: undefined,
        jiczl: undefined,
        ganmdpjz: undefined
      },
      // 表单参数
      form: {},
      // 表单校验
      rules: {
      }
    };
  },
  created() {
    this.getList();
  },
  methods: {
    /** 查询最大干密度\最佳含水率试验检测记录列表 */
    getList() {
      this.loading = true;
      listWjjhlWdclzdgmdBsInfo(this.queryParams).then(response => {
        this.wjjhlWdclzdgmdBsInfoList = response.rows;
        this.total = response.total;
        this.loading = false;
      });
    },
    // 取消按钮
    cancel() {
      this.open = false;
      this.reset();
    },
    // 表单重置
    reset() {
      this.form = {
        excelId: undefined,
        totalPage: undefined,
        page: undefined,
        jilbh: undefined,
        jiancdwmc: undefined,
        gongcmc: undefined,
        gongcbwyt: undefined,
        yangpmc: undefined,
        yangpbh: undefined,
        yangpsl: undefined,
        yangpzt: undefined,
        yangpsj: undefined,
        shiyjcrq: undefined,
        shiytjwd: undefined,
        shiytjsd: undefined,
        jiancyj: undefined,
        pandyj: undefined,
        jiancyjIds: undefined,
        pandyjIds: undefined,
        zhuyyqsbmcjbh: undefined,
        shebIds: undefined,
        fujsm: undefined,
        delFlag: undefined,
        createBy: undefined,
        createTime: undefined,
        updateBy: undefined,
        updateTime: undefined,
        cailmcgg1: undefined,
        cailmcgg2: undefined,
        cailmcgg3: undefined,
        cailmcgg4: undefined,
        cailmcgg5: undefined,
        cailmcgg6: undefined,
        cailmcgg7: undefined,
        chand1: undefined,
        chand2: undefined,
        chand3: undefined,
        chand4: undefined,
        chand5: undefined,
        chand6: undefined,
        chand7: undefined,
        bil1: undefined,
        bil2: undefined,
        bil3: undefined,
        bil4: undefined,
        bil5: undefined,
        bil6: undefined,
        bil7: undefined,
        shiyfflb: undefined,
        tongrj: undefined,
        klhl538mm: undefined,
        luoj: undefined,
        meicjs: undefined,
        jiczl: undefined,
        ganmdpjz: undefined
      };
      this.resetForm("form");
    },
    /** 搜索按钮操作 */
    handleQuery() {
      this.queryParams.pageNum = 1;
      this.getList();
    },
    /** 重置按钮操作 */
    resetQuery() {
      this.resetForm("queryForm");
      this.handleQuery();
    },
    // 多选框选中数据
    handleSelectionChange(selection) {
      this.ids = selection.map(item => item.excelId)
      this.single = selection.length!==1
      this.multiple = !selection.length
    },
    /** 新增按钮操作 */
    handleAdd() {
      this.reset();
      this.open = true;
      this.title = "添加最大干密度\最佳含水率试验检测记录";
    },
    /** 修改按钮操作 */
    handleUpdate(row) {
      this.loading = true;
      this.reset();
      const excelId = row.excelId || this.ids
      getWjjhlWdclzdgmdBsInfo(excelId).then(response => {
        this.loading = false;
        this.form = response.data;
        this.open = true;
        this.title = "修改最大干密度\最佳含水率试验检测记录";
      });
    },
    /** 提交按钮 */
    submitForm() {
      this.$refs["form"].validate(valid => {
        if (valid) {
          this.buttonLoading = true;
          if (this.form.excelId != null) {
            updateWjjhlWdclzdgmdBsInfo(this.form).then(response => {
              this.$modal.msgSuccess("修改成功");
              this.open = false;
              this.getList();
            }).finally(() => {
              this.buttonLoading = false;
            });
          } else {
            addWjjhlWdclzdgmdBsInfo(this.form).then(response => {
              this.$modal.msgSuccess("新增成功");
              this.open = false;
              this.getList();
            }).finally(() => {
              this.buttonLoading = false;
            });
          }
        }
      });
    },
    /** 删除按钮操作 */
    handleDelete(row) {
      const excelIds = row.excelId || this.ids;
      this.$modal.confirm('是否确认删除最大干密度\最佳含水率试验检测记录编号为"' + excelIds + '"的数据项？').then(() => {
        this.loading = true;
        return delWjjhlWdclzdgmdBsInfo(excelIds);
      }).then(() => {
        this.loading = false;
        this.getList();
        this.$modal.msgSuccess("删除成功");
      }).catch(() => {
      }).finally(() => {
        this.loading = false;
      });
    },
    /** 导出按钮操作 */
    handleExport() {
      this.download('report_wjjhl/wjjhlWdclzdgmdBsInfo/export', {
        ...this.queryParams
      }, `wjjhlWdclzdgmdBsInfo_${new Date().getTime()}.xlsx`)
    }
  }
};
</script>
